package com.lee.controller;

import com.lee.annotation.ResponseResult;
import com.lee.entity.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @className: TestController
 * @author: lx
 * @date: 2021-01-15
 * 测试统一包装返回值
 **/
@RestController
public class TestController extends BaseController {


    @ResponseResult
    @RequestMapping("{id}")
    User getUser(@PathVariable Integer id) {
        int i = 1 / id;
        return new User();
    }






}
